package a.g;

import java.util.ArrayList;

public class e
{
  private f a;
  private transient ArrayList c;
  public static boolean d;
  
  public e(f paramf)
  {
    if (f.p == 0)
    {
      if (paramf == null) {
        throw new NullPointerException();
      }
      this.a = paramf;
    }
  }
  
  public synchronized void a(d paramd)
  {
    if (f.p == 0) {
      if (this.c == null) {
        this.c = new ArrayList();
      }
    }
    this.c.add(paramd);
  }
  
  public synchronized void b(d paramd)
  {
    if ((f.p != 0) || (this.c != null)) {
      this.c.remove(paramd);
    }
  }
  
  public void a()
  {
    if ((f.p != 0) || (e())) {
      a(new jb(this.a, (short)0));
    }
  }
  
  public void b()
  {
    if ((f.p != 0) || (e())) {
      a(new jb(this.a, (short)4));
    }
  }
  
  public void c()
  {
    if ((f.p != 0) || (e())) {
      a(new jb(this.a, (short)1));
    }
  }
  
  public void d()
  {
    if ((f.p != 0) || (e())) {
      a(new jb(this.a, (short)2));
    }
  }
  
  public void a(Throwable paramThrowable)
  {
    if ((f.p != 0) || (e())) {
      a(new jb(this.a, paramThrowable));
    }
  }
  
  public boolean e()
  {
    int i = f.p;
    if ((i != 0) || (this.c != null)) {
      if (i != 0) {}
    }
    return this.c.size() > 0;
  }
  
  public void a(jb paramjb)
  {
    int j = f.p;
    boolean bool = f.o;
    ArrayList localArrayList;
    synchronized (this)
    {
      if (j == 0) {
        if (this.c == null) {
          return;
        }
      }
      localArrayList = (ArrayList)this.c.clone();
    }
    do
    {
      for (int i = 0; !bool; i++)
      {
        if (i >= localArrayList.size()) {
          break;
        }
        ((d)localArrayList.get(i)).a(paramjb);
      }
    } while (j != 0);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.g.e
 * JD-Core Version:    0.7.0.1
 */